package com.ygqh.baby.po;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.ygqh.baby.ao.DataStatus;
import com.ygqh.baby.ao.OrderStatus;

public class KsdOrder {
	private Long id;

	private Long supplierId;

	private Long orderId;

	private String openId;

	private BigDecimal totalPrice;

	private OrderStatus orderStatus;

	private Date payTime;

	private Date createTime;

	private DataStatus status;

	private String remark;
	private List<KsdOrderDetail> ksdOrderDetails;

	public KsdOrder(Long orderId, String openId) {
		super();
		this.orderId = orderId;
		this.openId = openId;
	}

	public KsdOrder(Long orderId, Date payTime, OrderStatus orderStatus) {
		super();
		this.orderId = orderId;
		this.payTime = payTime;
		this.orderStatus = orderStatus;
	}

	public KsdOrder() {
		super();
	}

	public KsdOrder(Long orderId, Long supplierId, String openId, BigDecimal totalPrice, OrderStatus orderStatus, String remark) {
		super();
		this.supplierId = supplierId;
		this.orderId = orderId;
		this.openId = openId;
		this.totalPrice = totalPrice;
		this.orderStatus = orderStatus;
		this.remark = remark;
		this.createTime = new Date();
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getSupplierId() {
		return supplierId;
	}

	public void setSupplierId(Long supplierId) {
		this.supplierId = supplierId;
	}

	public Long getOrderId() {
		return orderId;
	}

	public void setOrderId(Long orderId) {
		this.orderId = orderId;
	}

	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId == null ? null : openId.trim();
	}

	public BigDecimal getTotalPrice() {
		return totalPrice;
	}

	public void setTotalPrice(BigDecimal totalPrice) {
		this.totalPrice = totalPrice;
	}

	public Date getPayTime() {
		return payTime;
	}

	public void setPayTime(Date payTime) {
		this.payTime = payTime;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public OrderStatus getOrderStatus() {
		return orderStatus;
	}

	public void setOrderStatus(OrderStatus orderStatus) {
		this.orderStatus = orderStatus;
	}

	public DataStatus getStatus() {
		return status;
	}

	public void setStatus(DataStatus status) {
		this.status = status;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark == null ? null : remark.trim();
	}

	public List<KsdOrderDetail> getKsdOrderDetails() {
		return ksdOrderDetails;
	}

	public void setKsdOrderDetails(List<KsdOrderDetail> ksdOrderDetails) {
		this.ksdOrderDetails = ksdOrderDetails;
	}
	
}